package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.CstCounterparty;

/**
 * 合同对方Mapper接口
 * 
 * @author zjw
 * @date 2023-01-04
 */
public interface CstCounterpartyMapper 
{
    /**
     * 查询合同对方
     * 
     * @param counterpartyId 合同对方主键
     * @return 合同对方
     */
    public CstCounterparty selectCstCounterpartyByCounterpartyId(Long counterpartyId);

    /**
     * 查询合同对方列表
     * 
     * @param cstCounterparty 合同对方
     * @return 合同对方集合
     */
    public List<CstCounterparty> selectCstCounterpartyList(CstCounterparty cstCounterparty);

    /**
     * 新增合同对方
     * 
     * @param cstCounterparty 合同对方
     * @return 结果
     */
    public int insertCstCounterparty(CstCounterparty cstCounterparty);

    /**
     * 修改合同对方
     * 
     * @param cstCounterparty 合同对方
     * @return 结果
     */
    public int updateCstCounterparty(CstCounterparty cstCounterparty);

    /**
     * 删除合同对方
     * 
     * @param counterpartyId 合同对方主键
     * @return 结果
     */
    public int deleteCstCounterpartyByCounterpartyId(Long counterpartyId);

    /**
     * 批量删除合同对方
     * 
     * @param counterpartyIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCstCounterpartyByCounterpartyIds(Long[] counterpartyIds);
}
